﻿/*------------------------------------------------
// File Description: UserMachineType DataBase Entity
// Author:			 汪亮
// Create Time:		 2020-06-07 01:24:28
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 用户站点权限
    /// </summary>
    [Table(nameof(UserMachineType))]
    public class UserMachineType : BaseEntity
    {

        #region Public Property

        ///<Summary>
        /// 用户ID
        ///</Summary>
        public int UserId { get; set; }

        ///<Summary>
        /// 设备类型
        ///</Summary>
        public Enum.MachineType MachineType { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 用户站点权限
        /// </summary>
        public virtual DbSet<UserMachineType> UserMachineTypes { get; set; }
    }
}